#!/bin/bash
set -e

export PEBBLE_SOCKET=/charm/containers/rootless/pebble.socket
juju-log "rootless=$(/charm/bin/pebble exec -- bash -c 'echo $UID')"

touch /charm/containers/rootless/ready
if [ -f "/charm/containers/rootful/ready" ]; then
    status-set active "Ready."
fi
